package com.classic.okhttp.enums;

public class Enum
{
	public enum EnumPlatform 
	{
		None(0),
		Ios(1),
		Android(2);

		public int value;

		private EnumPlatform(int var) 
		{
			this.value = var;
		}

		public static  EnumPlatform valueOf(int var) 
		{
			switch(var)
			{
				case 0:
					return None;
				case 1:
					return Ios;
				case 2:
					return Android;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumVenueLabel 
	{
		Stop(1),	//停
		Refund(2),	//退
		Membershipcard(3);	//会员卡

		public int value;

		private EnumVenueLabel(int var) 
		{
			this.value = var;
		}

		public static  EnumVenueLabel valueOf(int var) 
		{
			switch(var)
			{
				case 1:
					return Stop;
				case 2:
					return Refund;
				case 3:
					return Membershipcard;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumVersion 
	{
		Newest(0),	//最新
		Force(1),	// 强制升级
		Prompt(2),	//提示升级/
		None(3);	//还没上线的版本

		public int value;

		private EnumVersion(int var) 
		{
			this.value = var;
		}

		public static  EnumVersion valueOf(int var) 
		{
			switch(var)
			{
				case 0:
					return Newest;
				case 1:
					return Force;
				case 2:
					return Prompt;
				case 3:
					return None;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumHomepageAction 
	{
		None(0),	// 无
		Innerh5(1),	// 内部H5
		Outerh5(2),	// 外部H5
		Venuedetail(3),	// 场馆详情
		Productdetail(4),	// 课程详情
		Itemselect(5);	// 场次预定

		public int value;

		private EnumHomepageAction(int var) 
		{
			this.value = var;
		}

		public static  EnumHomepageAction valueOf(int var) 
		{
			switch(var)
			{
				case 0:
					return None;
				case 1:
					return Innerh5;
				case 2:
					return Outerh5;
				case 3:
					return Venuedetail;
				case 4:
					return Productdetail;
				case 5:
					return Itemselect;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumVenueItemState 
	{
		Optional(1),	//可选
		Notoptional(2);	//不可选

		public int value;

		private EnumVenueItemState(int var) 
		{
			this.value = var;
		}

		public static  EnumVenueItemState valueOf(int var) 
		{
			switch(var)
			{
				case 1:
					return Optional;
				case 2:
					return Notoptional;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumCollect 
	{
		Venue(1),	//场馆
		Product(2);	// 产品

		public int value;

		private EnumCollect(int var) 
		{
			this.value = var;
		}

		public static  EnumCollect valueOf(int var) 
		{
			switch(var)
			{
				case 1:
					return Venue;
				case 2:
					return Product;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumOrderState 
	{
		None(0),	//无
		Nopay(1),	//待支付
		Paid(2),	// 已支付
		Used(3),	// 已使用
		Refunding(4),	// 退款中
		Refund(5),	// 已退款
		Cancel(6),	//已取消
		Refundfailed(7);	//退款失败

		public int value;

		private EnumOrderState(int var) 
		{
			this.value = var;
		}

		public static  EnumOrderState valueOf(int var) 
		{
			switch(var)
			{
				case 0:
					return None;
				case 1:
					return Nopay;
				case 2:
					return Paid;
				case 3:
					return Used;
				case 4:
					return Refunding;
				case 5:
					return Refund;
				case 6:
					return Cancel;
				case 7:
					return Refundfailed;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumUserFieldType 
	{
		Pic(1),	//头像
		Nickname(2),	//昵称
		Password(3);	//密码

		public int value;

		private EnumUserFieldType(int var) 
		{
			this.value = var;
		}

		public static  EnumUserFieldType valueOf(int var) 
		{
			switch(var)
			{
				case 1:
					return Pic;
				case 2:
					return Nickname;
				case 3:
					return Password;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumPayWay 
	{
		Alipay(1),	//支付宝
		Wechatpay(2),	//微信支付
		Brandpay(3),	//公众号支付
		Minipay(4);	//小程序支付

		public int value;

		private EnumPayWay(int var) 
		{
			this.value = var;
		}

		public static  EnumPayWay valueOf(int var) 
		{
			switch(var)
			{
				case 1:
					return Alipay;
				case 2:
					return Wechatpay;
				case 3:
					return Brandpay;
				case 4:
					return Minipay;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumItemType 
	{
		None(0),
		Field(1),
		Product(2);

		public int value;

		private EnumItemType(int var) 
		{
			this.value = var;
		}

		public static  EnumItemType valueOf(int var) 
		{
			switch(var)
			{
				case 0:
					return None;
				case 1:
					return Field;
				case 2:
					return Product;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumRefundType 
	{
		Field(1),	//场地
		Subfield(2),	//子场地
		Product(3);	//课程

		public int value;

		private EnumRefundType(int var) 
		{
			this.value = var;
		}

		public static  EnumRefundType valueOf(int var) 
		{
			switch(var)
			{
				case 1:
					return Field;
				case 2:
					return Subfield;
				case 3:
					return Product;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumBannerType 
	{
		Venue(1),	//APP内部
		Product(2),	//产品Banner
		Home(3);	//首页弹出式

		public int value;

		private EnumBannerType(int var) 
		{
			this.value = var;
		}

		public static  EnumBannerType valueOf(int var) 
		{
			switch(var)
			{
				case 1:
					return Venue;
				case 2:
					return Product;
				case 3:
					return Home;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumVenueListType 
	{
		All(1),	//所有
		Field(2),	//场馆预订列表
		Product(3);	//产品购买列表

		public int value;

		private EnumVenueListType(int var) 
		{
			this.value = var;
		}

		public static  EnumVenueListType valueOf(int var) 
		{
			switch(var)
			{
				case 1:
					return All;
				case 2:
					return Field;
				case 3:
					return Product;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumVerifyType 
	{
		Login(1),	//登录
		Findpassword(2);	//找回密码

		public int value;

		private EnumVerifyType(int var) 
		{
			this.value = var;
		}

		public static  EnumVerifyType valueOf(int var) 
		{
			switch(var)
			{
				case 1:
					return Login;
				case 2:
					return Findpassword;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumCouponType 
	{
		Fullminus(1),	//满减优惠
		Deduction(2);	//抵扣优惠

		public int value;

		private EnumCouponType(int var) 
		{
			this.value = var;
		}

		public static  EnumCouponType valueOf(int var) 
		{
			switch(var)
			{
				case 1:
					return Fullminus;
				case 2:
					return Deduction;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumCouponRange 
	{
		Venueandproduct(1),	//所有场馆和所有的产品都有效
		Venue(2),	//所有场馆的场地预定全部有效，指定场馆的产品售卖有效
		Product(3),	//所有场馆的产品售卖全部有效，指定场馆的场地预定有效
		Appoint(4);	//指定场馆的产品售卖有效，指定场馆的场地预定有效

		public int value;

		private EnumCouponRange(int var) 
		{
			this.value = var;
		}

		public static  EnumCouponRange valueOf(int var) 
		{
			switch(var)
			{
				case 1:
					return Venueandproduct;
				case 2:
					return Venue;
				case 3:
					return Product;
				case 4:
					return Appoint;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumFeedBackType 
	{
		Feedback(1),	//意见反馈
		Report(2);	//举报

		public int value;

		private EnumFeedBackType(int var) 
		{
			this.value = var;
		}

		public static  EnumFeedBackType valueOf(int var) 
		{
			switch(var)
			{
				case 1:
					return Feedback;
				case 2:
					return Report;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumCounponStatusEnum 
	{
		Available(0),
		Used(1),
		Expired(2);

		public int value;

		private EnumCounponStatusEnum(int var) 
		{
			this.value = var;
		}

		public static  EnumCounponStatusEnum valueOf(int var) 
		{
			switch(var)
			{
				case 0:
					return Available;
				case 1:
					return Used;
				case 2:
					return Expired;
				default:
					assert(false);
			}
			return null;
		}

	};

	public enum EnumShareTypeEnum 
	{
		Wechatsession(1),
		Wechattimeline(2),
		Qqsession(3);

		public int value;

		private EnumShareTypeEnum(int var) 
		{
			this.value = var;
		}

		public static  EnumShareTypeEnum valueOf(int var) 
		{
			switch(var)
			{
				case 1:
					return Wechatsession;
				case 2:
					return Wechattimeline;
				case 3:
					return Qqsession;
				default:
					assert(false);
			}
			return null;
		}

	};

}
